/**
* Landing page for CanadaGPT
* Fully bilingual with Quebec French support
*/
'use client';
import { Link } from '@/i18n/navigation';
import { useTranslations } from 'next-intl';
import { Button } from '@canadagpt/design-system';
import { ParliamentSilhouette, MapleLeafIcon } from '@canadagpt/design-system';
import { Header } from '@/components/Header';
import { Footer } from '@/components/Footer';
import { ArrowRight, Users, FileText, Megaphone, DollarSign, Bot, Cpu, Database, Globe } from 'lucide-react';
export default function Home() {
const t = useTranslations('home');
return (
<div className="min-h-screen flex flex-col">
<Header />
{/* Hero Section */}
<main className="flex-1">
<section className="relative overflow-hidden py-20 sm:py-32">
{/* Background Image */}
<div
className="absolute inset-0 bg-cover bg-center"
style={{ backgroundImage: 'url(https://storage.googleapis.com/canada-gpt-ca-assets/parliament-buildings.jpg)' }}
>
{/* Dark overlay for text readability */}
<div className="absolute inset-0 bg-black/60" />
</div>
<div className="relative container mx-auto px-4 sm:px-6 lg:px-8">
<div className="max-w-3xl mx-auto text-center">
<div className="flex justify-center mb-6">
<MapleLeafIcon size={64} className="h-16 w-16 text-accent-red" />
</div>
<h1 className="text-4xl sm:text-5xl lg:text-6xl font-bold text-text-primary mb-6">
{t('hero.title')}
</h1>
<p className="text-xl text-text-secondary mb-8 max-w-2xl mx-auto">
{t('hero.subtitle')}
</p>
<div className="flex flex-col sm:flex-row gap-4 justify-center">
<Link href="/dashboard">
<Button size="lg" className="w-full sm:w-auto">
{t('hero.cta.primary')}
<ArrowRight className="ml-2 h-5 w-5" />
</Button>
</Link>
<Link href="/mps">
<Button variant="secondary" size="lg" className="w-full sm:w-auto">
{t('hero.cta.secondary')}
</Button>
</Link>
</div>
</div>
</div>
</section>
{/* Features Section */}
<section className="py-20 bg-bg-primary">
<div className="container mx-auto px-4 sm:px-6 lg:px-8">
<h2 className="text-3xl font-bold text-text-primary text-center mb-12">
{t('features.title')}
</h2>
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6">
{/* Feature 1: MPs */}
<Link href="/mps" className="group">
<div className="h-full bg-bg-secondary border border-border-subtle rounded-lg p-6 hover:border-accent-red transition-colors">
<Users className="h-12 w-12 text-accent-red mb-4" />
<h3 className="text-xl font-semibold text-text-primary mb-2 group-hover:text-accent-red transition-colors">
{t('features.mp.title')}
</h3>
<p className="text-text-secondary text-sm">
{t('features.mp.description')}
</p>
</div>
</Link>
{/* Feature 2: Bills */}
<Link href="/bills" className="group">
<div className="h-full bg-bg-secondary border border-border-subtle rounded-lg p-6 hover:border-accent-red transition-colors">
<FileText className="h-12 w-12 text-accent-red mb-4" />
<h3 className="text-xl font-semibold text-text-primary mb-2 group-hover:text-accent-red transition-colors">
{t('features.bills.title')}
</h3>
<p className="text-text-secondary text-sm">
{t('features.bills.description')}
</p>
</div>
</Link>
{/* Feature 3: Lobbying */}
<Link href="/lobbying" className="group">
<div className="h-full bg-bg-secondary border border-border-subtle rounded-lg p-6 hover:border-accent-red transition-colors">
<Megaphone className="h-12 w-12 text-accent-red mb-4" />
<h3 className="text-xl font-semibold text-text-primary mb-2 group-hover:text-accent-red transition-colors">
{t('features.lobbying.title')}
</h3>
<p className="text-text-secondary text-sm">
{t('features.lobbying.description')}
</p>
</div>
</Link>
{/* Feature 4: Spending */}
<Link href="/spending" className="group">
<div className="h-full bg-bg-secondary border border-border-subtle rounded-lg p-6 hover:border-accent-red transition-colors">
<DollarSign className="h-12 w-12 text-accent-red mb-4" />
<h3 className="text-xl font-semibold text-text-primary mb-2 group-hover:text-accent-red transition-colors">
{t('features.spending.title')}
</h3>
<p className="text-text-secondary text-sm">
{t('features.spending.description')}
</p>
</div>
</Link>
</div>
</div>
</section>
{/* AI Capabilities Section */}
<section className="py-20 bg-bg-secondary">
<div className="container mx-auto px-4 sm:px-6 lg:px-8">
<h2 className="text-3xl font-bold text-text-primary text-center mb-4">
{t('capabilities.title')}
</h2>
<p className="text-text-secondary text-center mb-12 max-w-2xl mx-auto">
{t('capabilities.subtitle')}
</p>
{/* AI Chatbot Highlight */}
<div className="bg-bg-primary border border-border-subtle rounded-xl p-8 mb-8">
<div className="flex flex-col md:flex-row items-center gap-6">
<div className="flex-shrink-0">
<div className="w-20 h-20 bg-accent-red/10 rounded-full flex items-center justify-center">
<Bot className="h-10 w-10 text-accent-red" />
</div>
</div>
<div className="flex-1 text-center md:text-left">
<h3 className="text-2xl font-bold text-text-primary mb-2">
{t('capabilities.chatbot.title')}
</h3>
<p className="text-text-secondary mb-4">
{t('capabilities.chatbot.description')}
</p>
<div className="flex flex-wrap justify-center md:justify-start gap-2">
<span className="px-3 py-1 bg-bg-secondary rounded-full text-sm text-text-secondary border border-border-subtle">
Claude
</span>
<span className="px-3 py-1 bg-bg-secondary rounded-full text-sm text-text-secondary border border-border-subtle">
OpenAI GPT
</span>
<span className="px-3 py-1 bg-bg-secondary rounded-full text-sm text-text-secondary border border-border-subtle">
{t('capabilities.chatbot.byok')}
</span>
</div>
</div>
<div className="flex-shrink-0">
<Link href={"/chat" as any}>
<Button>
{t('capabilities.chatbot.cta')}
<ArrowRight className="ml-2 h-4 w-4" />
</Button>
</Link>
</div>
</div>
</div>
{/* Capability Cards */}
<div className="grid grid-cols-1 md:grid-cols-3 gap-6">
{/* MCP Server */}
<div className="h-full bg-bg-primary border border-border-subtle rounded-lg p-6">
<Cpu className="h-10 w-10 text-accent-red mb-4" />
<h3 className="text-lg font-semibold text-text-primary mb-2">
{t('capabilities.mcp.title')}
</h3>
<p className="text-text-secondary text-sm">
{t('capabilities.mcp.description')}
</p>
</div>
{/* Real-time Data */}
<div className="h-full bg-bg-primary border border-border-subtle rounded-lg p-6">
<Database className="h-10 w-10 text-accent-red mb-4" />
<h3 className="text-lg font-semibold text-text-primary mb-2">
{t('capabilities.data.title')}
</h3>
<p className="text-text-secondary text-sm">
{t('capabilities.data.description')}
</p>
</div>
{/* Bilingual */}
<div className="h-full bg-bg-primary border border-border-subtle rounded-lg p-6">
<Globe className="h-10 w-10 text-accent-red mb-4" />
<h3 className="text-lg font-semibold text-text-primary mb-2">
{t('capabilities.bilingual.title')}
</h3>
<p className="text-text-secondary text-sm">
{t('capabilities.bilingual.description')}
</p>
</div>
</div>
</div>
</section>
{/* CTA Section */}
<section className="py-20 bg-bg-primary">
<div className="container mx-auto px-4 sm:px-6 lg:px-8 text-center">
<h2 className="text-3xl font-bold text-text-primary mb-4">
{t('cta.title')}
</h2>
<p className="text-xl text-text-secondary mb-8 max-w-2xl mx-auto">
{t('cta.description')}
</p>
<Link href="/dashboard">
<Button size="lg">
{t('cta.button')}
<ArrowRight className="ml-2 h-5 w-5" />
</Button>
</Link>
</div>
</section>
</main>
<Footer />
</div>
);
}